import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.column.operation.query',
            defaultMessage: '查询'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.column.operation.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    letterOfCredit: {
        url: '/:id/letterOfCredit',
        title: formatMessage({
            id: 'routes.column.operation.letterOfCredit',
            defaultMessage: '信用证详情'
        }),
        format: '/{0}/letterOfCredit'
    },
    declare: {
        url: '/:id/declare',
        title: formatMessage({
            id: 'routes.operation.declare',
            defaultMessage: '报关'
        }),
        format: '/{0}/declare'
    },
    clearancet: {
        url: '/:id/clearancet',
        title: formatMessage({
            id: 'routes.operation.clearancet',
            defaultMessage: '清关'
        }),
        format: '/{0}/clearancet'
    }
});

export default routes;
